import info from "../action/index"

let flagReducer=(state={flag:true},action:any)=>{
    switch(action.type){
        case info.CHANGEFLAG:return {flag:action.payload}
    }
    return state
}

export default flagReducer